﻿using System.Net;
using System.Net.Http;
using System.Net.Http.Headers;
using Newtonsoft.Json;

namespace LsTool
{
    public class MyMessage: HttpResponseMessage
    {
        public MyMessage(string content)
        {
            this.StatusCode = HttpStatusCode.OK; 
          
            var stringContent = new StringContent(content);
            stringContent.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8");
            Content = stringContent;
        }
    }
}